package cn.hzking.gjmall.view;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by Administrator on 2016/8/29.
 */
public class MyListView extends RecyclerView {


    public MyListView  (Context context, AttributeSet attrs) {

        super(context, attrs);
        this.setFocusable(false);


    }


    public MyListView  (Context context) {

        super(context);
        this.setFocusable(false);



    }



    public  MyListView  (Context context, AttributeSet attrs, int defStyle) {

        super(context, attrs, defStyle);
        this.setFocusable(false);



    }



    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {



        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,



                MeasureSpec.AT_MOST);

        super.onMeasure(widthMeasureSpec, expandSpec);



    }


}
